package edu.ustb.mis.dm.model;

public class ValueModel implements Comparable<ValueModel> {
	private Integer value;

	private Boolean status;

	public ValueModel(final Integer value) {
		this.value = value;
	}

	public int compareTo(final ValueModel o) {
		return Double.compare(o.getValue(), this.value);
	}

	public Boolean getStatus() {
		return status;
	}

	public Integer getValue() {
		return value;
	}

	public ValueModel increase() {
		this.value++;
		return this;
	}

	public void setStatus(final Boolean status) {
		this.status = status;
	}

	public void setValue(final Integer value) {
		this.value = value;
	}
}
